package com.thor.palmmall.dao.banlancebill;

import java.util.List;

import com.thor.palmmall.rest.balancebill.BanlanceBill;
import com.thor.palmmall.rest.balancebill.BanlanceBillDetail;
import com.thor.palmmall.rest.balancebill.BillQueryParam;

public interface BanlanceBillDao {
  
  public String  save(BanlanceBill banlanceBill);
  
  public void deleteOldBill(String billSettle, String contracts, String storeId);

  public List<BanlanceBill> getBanlanceBills(BillQueryParam billQueryParam, List<String> billSettles);
  
  /**
   * 查对账单明细
   * @param billUuid
   * @return
   */
  public List<BanlanceBillDetail> getBanlanceBills(String billUuid);

  public String getBanlancebillByCode(String code, String billSettle);
  
  /**
   * 获取对账单明细
   * @param accId
   * @return
   */
  public BanlanceBillDetail getDetailByAccId(String accId);
  
  /**
   * 根据明细actId获取对账单
   * @param string
   * @return
   */
  public BanlanceBill getBillByAccId(String string);
  
  /**
   * 根据uuid获取bill
   * @param billId
   * @return
   */
  public BanlanceBill get(String billId);
  
  /**
   * 删除旧的detail记录
   * @param actIds
   */
  public void deleteOldDetail(List<String> actIds);
  
}
